<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<base href="<%=basePath%>" >
</head>
<body>
	<script type="text/javascript" src="<%=basePath%>scripts/system/role/list.js"></script>

	<div class="easyui-layout" fit="true">
	
		<div region="north" border="false" class="borsty-b">
				<div id="dRolePanel">
					<a id="addRoleBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="openRoleWindow('add')">增加</a>
					<a id="editRoleBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="openRoleWindow('edit')">编辑</a>
					<a id="delRoleBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="openRoleWindow('del')">删除</a>
					<a id="saveRoleBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="roleSave()">保存</a>
					<a id="closeRoleBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="curTabClose()">关闭</a>
				</div>
		</div>
	
		<div region="center" border="false">
			<div id="dRoleDataGrid" fit="true"></div>
		</div>
	</div>
	<div id="dRoleWindow">
		<table border="0" width="100%" align="center" cellpadding="5px" cellspacing="5px">
			<tr>
				<td>名称：</td>
				<td><input id="roleName" name="roleName" type="text" /></td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<input id="roleMethodName" name="roleMethodName" type="hidden" />
					<input id="submitRoleButton" name="submitRoleButton" type="button" style="width:80px; height:30px;" onclick="submitRole()" />
				</td>
			</tr>
		</table>
	</div>	 
</body>
</html>